package com.yonyou.cyxdms.sysAuth.service.feign;

import com.yonyou.cyxdms.sysAuth.service.feign.entity.ScheduleEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Base基础数据提供接口
 *
 * @author: houkaihua
 * @since: 2019/1/8
 * @updateDate:
 * @updateRemark:
 * @version:1.0 Copyright: Copyright (c) 2019
 */
@FeignClient(value = "ops-task")
public interface OpsTaskService {


    @RequestMapping(value = "/taskManager/save", method = RequestMethod.POST)
    Object create(@RequestBody ScheduleEntity scheduleEntity);

    /**
     * 修改表达式
     */

    @RequestMapping(value = "/taskManager/stopJob", method = RequestMethod.PUT)
    Object update(ScheduleEntity scheduleEntity);
}
